//将id变成4位数 0001 0010 0100 1000
function idFormat(value) {
  const value_string = value + '';
  const valueLength = value_string.length;
  if(valueLength == 1) {
      return '000' + value;
  }else if(valueLength == 2) {
      return '00' + value;
  }else if(valueLength == 3) {
      return '0' + value;
  }else if(valueLength == 4) {
      return value;
  }
}

export { idFormat }